package cn.yunhe.action.temp;

import cn.yunhe.pojo.Type;
import cn.yunhe.service.TypeService;
import cn.yunhe.util.BaseAction;

import java.util.ArrayList;
import java.util.List;

public class TypeAction1 extends BaseAction {
    private Type type;
    private List<Type>typeList=new ArrayList<>();
    private String target;

    TypeService typeService=new TypeService();

    public String typeList(){
        Type type1=new Type();
        typeList=typeService.typeList(type1);
        /*target="fabu";*/
        return SUCCESS;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public List<Type> getTypeList() {
        return typeList;
    }

    public void setTypeList(List<Type> typeList) {
        this.typeList = typeList;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }
}
